/**
 * 
 */
package com.zte.claa.inficombo.csa.app.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 0283000106
 *  
 *  gprsdev.comm.switchon=false
    gprsdev.comm.maxconnnum=1000
    gprsdev.comm.svrport=21133
    gprsdev.comm.localaddr=0
	gprsdev.comm.msgqueuesize=5000
	gprsdev.comm.updealermaxnum=2
	gprsdev.comm.bufsize=2048
	gprsdev.comm.cmdsendtimeoutsecond=5
	gprsdev.comm.cmdtimeoutsecond=20
	gprsdev.comm.connwaitsecond=15
	gprsdev.comm.sessionidlesecond=70
	gprsdev.comm.charsetname=UTF-8
 *
 */

@Component  
@ConfigurationProperties(prefix="gprsdev.comm") 
public class GPRSDevConnProps {	
	private boolean switchon = false;
	private int maxconnnum = 1000;
	private int updealermaxnum = 2;
	private int svrport = 21133;
	private int bufsize = 2048;
	private int cmdsendtimeoutsecond=5;
	private int connwaitsecond = 15;
	private int cmdtimeoutsecond = 20;
	private int sessionidlesecond = 600;
	private String charsetname = "UTF-8";
	private String localaddr = "0";
	private int msgqueuesize = 5000;

	/**
	 * @return the charsetname
	 */
	public String getCharsetname() {
		return charsetname;
	}
	
	/**
	 * @param charsetname the charsetname to set
	 */
	public void setCharsetname(String charsetname) {
		this.charsetname = charsetname;
	}

	/**
	 * @return the bufsize
	 */
	public int getBufsize() {
		return bufsize;
	}

	/**
	 * @param bufsize the bufsize to set
	 */
	public void setBufsize(int bufsize) {
		this.bufsize = bufsize;
	}

	/**
	 * @return the connwaitsecond
	 */
	public int getConnwaitsecond() {
		return connwaitsecond;
	}

	/**
	 * @param connwaitsecond the connwaitsecond to set
	 */
	public void setConnwaitsecond(int connwaitsecond) {
		this.connwaitsecond = connwaitsecond;
	}

	/**
	 * @return the cmdtimeoutsecond
	 */
	public int getCmdtimeoutsecond() {
		return cmdtimeoutsecond;
	}

	/**
	 * @param cmdtimeoutsecond the cmdtimeoutsecond to set
	 */
	public void setCmdtimeoutsecond(int cmdtimeoutsecond) {
		this.cmdtimeoutsecond = cmdtimeoutsecond;
	}

	/**
	 * @return the sessionidlesecond
	 */
	public int getSessionidlesecond() {
		return sessionidlesecond;
	}

	/**
	 * @param sessionidlesecond the sessionidlesecond to set
	 */
	public void setSessionidlesecond(int sessionidlesecond) {
		this.sessionidlesecond = sessionidlesecond;
	}

	/**
	 * @return the cmdsendtimeoutsecond
	 */
	public int getCmdsendtimeoutsecond() {
		return cmdsendtimeoutsecond;
	}

	/**
	 * @param cmdsendtimeoutsecond the cmdsendtimeoutsecond to set
	 */
	public void setCmdsendtimeoutsecond(int cmdsendtimeoutsecond) {
		this.cmdsendtimeoutsecond = cmdsendtimeoutsecond;
	}

	public int getSvrport() {
		return svrport;
	}

	public void setSvrport(int svrport) {
		this.svrport = svrport;
	}

	public int getMaxconnnum() {
		return maxconnnum;
	}

	public void setMaxconnnum(int maxconnnum) {
		this.maxconnnum = maxconnnum;
	}

	public String getLocaladdr() {
		return localaddr;
	}

	public void setLocaladdr(String localaddr) {
		this.localaddr = localaddr;
	}

	public int getMsgqueuesize() {
		return msgqueuesize;
	}

	public void setMsgqueuesize(int msgqueuesize) {
		this.msgqueuesize = msgqueuesize;
	}

	public boolean isSwitchon() {
		return switchon;
	}

	public void setSwitchon(boolean switchon) {
		this.switchon = switchon;
	}

	public int getUpdealermaxnum() {
		return updealermaxnum;
	}

	public void setUpdealermaxnum(int updealermaxnum) {
		this.updealermaxnum = updealermaxnum;
	}
	
}
